<template>
  <section id="SearchCpn-Cpn">
    <!--title和btn部分-->
    <div class="search-title-btn-ctn">
      <span class="search-title">{{ searchTitle }}</span>
      <div class="search-btn">
        <slot></slot>
      </div>
    </div>
    <!--ipt的form部分-->
    <div class="search-ipt-ctn">
      <slot name="slot-ipt"></slot>
    </div>
  </section>
</template>

<script>
export default {
  data () {
    return {}
  },
  props: {
    searchTitle: {
      type: String,
      require: false,
      default: '搜索条件'
    }
  },
  created () {

  },
  methods: {}
}

</script>

<style lang="less" scoped>
#SearchCpn-Cpn {
  margin-top: 10px;
  margin-bottom: 10px;
  .search-title-btn-ctn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    .search-title {
      position: relative;
      padding-left: 10px;
      &:before {
        content: '';
        display: inline-block;
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 15px;
        background-color: #666666;
      }
    }
    .search-btn {

    }
  }
  .search-ipt-ctn {
    .row-form {
      width: 100%;
      padding-top: 5px;
      box-sizing: border-box;
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-start;
      align-items: center;
      background-color: #f8f8f9;
    }
  }
}
</style>
